package com.example.util;

public class CodeCheck {
    public static void main(String[] args) {
        style();
    }
    //代码风格
    public static void style(){
        //1 命名规范：驼峰/下划线
        String userName="zhangsan";
        String user_name="lisi";
        String package_name="com.example.util";
        //错误示范：username
        String username="wang wu";
        //2 注释规范：单行注释
        /*多行
        注释*/
        //3 异常处理
        try {
            int i=1/0;
        } catch (Exception e) {
            System.out.println(e);
        } finally {
            System.out.println("calculation over");
        }

    }
}
